package internal
Import Path
github.com/RoaringBitmap/roaring/internal (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (total 3)
ByteBuffer raw bytes wrapper
GetReadBytes returns read bytes
Next returns a slice containing the next n bytes from the reader
If there are fewer bytes than the given n, io.ErrUnexpectedEOF will be returned
NextReturnsSafeSlice returns false since ByteBuffer might hold
an array owned by some other systems.
Read implements io.Reader.
ReadUInt16 reads uint16 with LittleEndian order
ReadUInt32 reads uint32 with LittleEndian order
Reset resets the given buffer with a new byte slice
SkipBytes skips exactly n bytes
*ByteBuffer : ByteInput
*ByteBuffer : io.Reader
func NewByteBuffer(buf []byte) *ByteBuffer
ByteInput typed interface around io.Reader or raw bytes
GetReadBytes returns read bytes
Next returns a slice containing the next n bytes from the buffer,
advancing the buffer as if the bytes had been returned by Read.
NextReturnsSafeSlice returns true if Next() returns a safe slice as opposed
to a slice that points to an underlying buffer possibly owned by another system.
When NextReturnsSafeSlice returns false, the result from Next() should be copied
before it is modified (i.e., it is immutable).
ReadUInt16 reads uint16 with LittleEndian order
ReadUInt32 reads uint32 with LittleEndian order
SkipBytes skips exactly n bytes
*ByteBuffer
*ByteInputAdapter
func NewByteInput(buf []byte) ByteInput
func NewByteInputFromReader(reader io.Reader) ByteInput
ByteInputAdapter reader wrapper
GetReadBytes returns read bytes
Next returns a slice containing the next n bytes from the buffer,
advancing the buffer as if the bytes had been returned by Read.
NextReturnsSafeSlice returns true since ByteInputAdapter always returns a slice
allocated with make([]byte, ...)
Read implements io.Reader.
ReadUInt16 reads uint16 with LittleEndian order
ReadUInt32 reads uint32 with LittleEndian order
Reset resets the given buffer with a new stream
SkipBytes skips exactly n bytes
*ByteInputAdapter : ByteInput
*ByteInputAdapter : io.Reader
Package-Level Functions (total 3)
NewByteBuffer creates a new ByteBuffer.
NewByteInput creates raw bytes wrapper
NewByteInputFromReader creates reader wrapper
Package-Level Variables (total 2)
ByteBufferPool shared pool
ByteInputAdapterPool shared pool
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |